<?php
/**
 * Created by PhpStorm.
 * User: EDZ
 * Date: 2020/6/22
 * Time: 11:08
 */

namespace DesignPatterns\Structural\Adaptor;


class Book implements BookInterface
{
    /** @var integer */
    private $page;

    public function turnPage() {
        $this->page += 1;
    }

    public function open() {
        $this->page = 1;
    }

    public function getPage(): int {
        return $this->page;
    }
}